<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<table class="table">
	<caption>扑通 平台 用户表</caption>
	<thead>
		<tr>

			<th>用户账号</th>
			<th>用户电话</th>
			<th>发展人</th>
			<th>下单数量</th>
			<th>交易金额</th>
			<th>赚取金额</th>
		</tr>
	</thead>
	<c:forEach var="user" items="${userlist}">
		<tbody>
			<tr>
				<td>${user.corpName}</td>
				<td>${user.corpName}</td>
				<td>${user.corpName}</td>
				<td>${user.corpName}</td>
				<td>${user.corpName}</td>
				<td>${user.corpName}</td>
			</tr>
		</tbody>
	</c:forEach>


</table>
<script>
	function updateCorp(corpCode, status) {
		alert(corpCode + '---' + status);
		var url = "/tztz/updatecorp";
		var param = new Object();
		param.clientID = corpCode;
		param.status = status;

		var oo = {};
		oo.url = url;
		oo.params = JSON.stringify(param);
		oo.success = function(data) {
			window.location.refresh();
		};
		oo.error = function() {
			alert("系统错误，更新失败");
		}
		sendRequest(oo);
	}
</script>
